// IMiddlewareRequest.aidl
package com.haima.agentpartner;
import com.haima.agentpartner.DeviceInfo;
import com.haima.agentpartner.IMiddlewareResponse;

// Declare any non-default types here with import statements

interface IMiddlewareRequest {
    /**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
        //设置设备信息
        boolean setDeviceInfo(in DeviceInfo info);
        //开始日志匹配
        void startLogMatch(String regex, long timestampInMs);
        //停止日志匹配
        void stopLogMatch();
        //注册回调
        void registerCallBack(IMiddlewareResponse response, String packageName);
        //通知游戏释放
        void notifyGameRelease(String packageName);
        //申请权限
        boolean applyPermission(String path);
        //截图
        String screencap(String callingName);
        //通用方法，上面几个接口都可以通过该接口统一调用
        String commonFunction(String json);
}